Optimal. Leaf size=29 \[ -\frac {d \log (\cosh (a+b x))}{b^2}+\frac {(c+d x) \tanh (a+b x)}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {4269, 3556}
\begin {gather*} \frac {(c+d x) \tanh (a+b x)}{b}-\frac {d \log (\cosh (a+b x))}{b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3556
Rule 4269
Rubi steps
\begin {align*} \int (c+d x) \text {sech}^2(a+b x) \, dx &=\frac {(c+d x) \tanh (a+b x)}{b}-\frac {d \int \tanh (a+b x) \, dx}{b}\\ &=-\frac {d \log (\cosh (a+b x))}{b^2}+\frac {(c+d x) \tanh (a+b x)}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 51, normalized size = 1.76 \begin {gather*} -\frac {d \log (\cosh (a+b x))}{b^2}+\frac {d x \text {sech}(a) \text {sech}(a+b x) \sinh (b x)}{b}+\frac {d x \tanh (a)}{b}+\frac {c \tanh (a+b x)}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.84, size = 57, normalized size = 1.97
method | result | size |
risch | \(\frac {2 d x}{b}+\frac {2 d a}{b^{2}}-\frac {2 \left (d x +c \right )}{\left ({\mathrm e}^{2 b x +2 a}+1\right ) b}-\frac {d \ln \left ({\mathrm e}^{2 b x +2 a}+1\right )}{b^{2}}\) | \(57\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 72 vs.
\(2 (29) = 58\).
time = 0.29, size = 72, normalized size = 2.48 \begin {gather*} d {\left (\frac {2 \, x e^{\left (2 \, b x + 2 \, a\right )}}{b e^{\left (2 \, b x + 2 \, a\right )} + b} - \frac {\log \left ({\left (e^{\left (2 \, b x + 2 \, a\right )} + 1\right )} e^{\left (-2 \, a\right )}\right )}{b^{2}}\right )} + \frac {2 \, c}{b {\left (e^{\left (-2 \, b x - 2 \, a\right )} + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 161 vs.
\(2 (29) = 58\).
time = 0.41, size = 161, normalized size = 5.55 \begin {gather*} \frac {2 \, b d x \cosh \left (b x + a\right )^{2} + 4 \, b d x \cosh \left (b x + a\right ) \sinh \left (b x + a\right ) + 2 \, b d x \sinh \left (b x + a\right )^{2} - 2 \, b c - {\left (d \cosh \left (b x + a\right )^{2} + 2 \, d \cosh \left (b x + a\right ) \sinh \left (b x + a\right ) + d \sinh \left (b x + a\right )^{2} + d\right )} \log \left (\frac {2 \, \cosh \left (b x + a\right )}{\cosh \left (b x + a\right ) - \sinh \left (b x + a\right )}\right )}{b^{2} \cosh \left (b x + a\right )^{2} + 2 \, b^{2} \cosh \left (b x + a\right ) \sinh \left (b x + a\right ) + b^{2} \sinh \left (b x + a\right )^{2} + b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (c + d x\right ) \operatorname {sech}^{2}{\left (a + b x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 78 vs.
\(2 (29) = 58\).
time = 0.41, size = 78, normalized size = 2.69 \begin {gather*} \frac {2 \, b d x e^{\left (2 \, b x + 2 \, a\right )} - d e^{\left (2 \, b x + 2 \, a\right )} \log \left (e^{\left (2 \, b x + 2 \, a\right )} + 1\right ) - 2 \, b c - d \log \left (e^{\left (2 \, b x + 2 \, a\right )} + 1\right )}{b^{2} e^{\left (2 \, b x + 2 \, a\right )} + b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.09, size = 50, normalized size = 1.72 \begin {gather*} \frac {2\,d\,x}{b}-\frac {2\,\left (c+d\,x\right )}{b\,\left ({\mathrm {e}}^{2\,a+2\,b\,x}+1\right )}-\frac {d\,\ln \left ({\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}+1\right )}{b^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________